home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3mport.h
- // Auto generated file, do not modify by hand
- // Copyrights 2002, Realsoft Graphics Oy
-
- var R3_MSGPORT_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_MSGPORT = 4;
-
-
-
-
- // Description: Put message to a message port
- // p3: R3MESSAGE *, message to be sent
-
- R3MPM_PUTMSG = 4000;
-
- function mR3MPM_PUTMSG(p3) {
- R3DoA(this.r3obj, R3MPM_PUTMSG, p3);
- }
-
- // Description: Read message from a message port
- // Returns: R3MESSAGE *, message or NULL if no messages found
-
- R3MPM_GETMSG = 4001;
-
- function mR3MPM_GETMSG() {
- return R3DoA(this.r3obj, R3MPM_GETMSG, 0);
- }
-
- // Description: Send message back to the sender.
- // p3: R3MESSAGE *, message to be replied
-
- R3MPM_REPLYMSG = 4002;
-
- function mR3MPM_REPLYMSG(p3) {
- R3DoA(this.r3obj, R3MPM_REPLYMSG, p3);
- }
-
-
-
-
- // R3MPA_Task: Object, owner task (thread)
- R3MPA_Task = 4500;
- function SetR3MPA_Task(value) {
- R3Set(this.r3obj, R3MPA_Task, value);
- }
-
- function GetR3MPA_Task() {
- return R3Get(this.r3obj, R3MPA_Task, R3TID_INTEGER, TRUE); // R3OBJ*
- }
-
- // R3MPA_Signal: Object, signal object associated with the message port
- R3MPA_Signal = 4501;
- function SetR3MPA_Signal(value) {
- R3Set(this.r3obj, R3MPA_Signal, value);
- }
-
- function GetR3MPA_Signal() {
- return R3Get(this.r3obj, R3MPA_Signal, R3TID_INTEGER, TRUE); // R3OBJ*
- }
-
-
-
- function r3Msgport () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_MSGPORT, arguments);
- }
- // Methods
- this.PUTMSG=mR3MPM_PUTMSG;
- this.GETMSG=mR3MPM_GETMSG;
- this.REPLYMSG=mR3MPM_REPLYMSG;
-
- // Attributes
- this.GetTask=GetR3MPA_Task;
- this.SetTask=SetR3MPA_Task;
- this.GetSignal=GetR3MPA_Signal;
- this.SetSignal=SetR3MPA_Signal;
- }
-
- r3Msgport.prototype=new r3Root;
- // r3mport.h_H